#{extends 'main.html' /}
#{set title:'new_project' /}

<h1>Register new project</h1>

#{form @saveProject()}
    #{field 'project.project_number'}
        <p class="${field.errorClass}">
            <strong>Project Nr.:</strong> <input type="text" name="${field.name}" size="16" value="${project?.project_number}"> *
            <span class="error">${field.error}</span>
        </p>
    #{/field}
    #{field 'project.project_note'}
        <p class="${field.errorClass}">
            <strong>Project Note:</strong> <input type="text" name="${field.name}" size="16" value="${project?.project_note}"> *
            <span class="error">${field.error}</span>
        </p>
    #{/field}
    <p class="buttons">
        <input type="submit" value="Register"> <a href="@{index()}">Cancel</a>    
    </p>
#{/form}